]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Add accessibility to Events and Weather
authorSergio Costas Rodriguez <sergio.costas@canonical.com>
Tue, 24 Jun 2025 16:20:21 +0000 (18:20 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 28 Jun 2025 10:29:27 +0000 (12:29 +0200)
The Events element, with today events, and the Weather element,
with the weather in our location, lack accessibility names.

This patch fixes it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3769>
(cherry picked from commit 2203b7eac39deb57a0c806bb4ca082f19993ba16)

js/ui/dateMenu.js

index 39687c3215bfe4217b1e797d34baef9d6aa317c2..04dde66242d58fce3970383f7380a74827aa4e17 100644 (file)
@@ -132,6 +132,7 @@ class EventsSection extends St.Button {
             style_class: 'events-title',
         });
         this.child.add_child(this._title);
+        this.labelActor = this._title;
 
         this._eventsList = new St.BoxLayout({
             style_class: 'events-list',
@@ -567,6 +568,7 @@ class WeatherSection extends St.Button {
         });
         titleBox.add_child(this._titleLabel);
         box.add_child(titleBox);
+        this.labelActor = this._titleLabel;
 
         this._titleLocation = new St.Label({
             style_class: 'weather-header location',